<!-- 发表文章模态框 -->
<button type="button" class="btn btn-default btn-link btn-lg" data-toggle="modal" data-target="#myModalText">
    文件上传
</button>

<!-- Modal -->
<div class="modal fade" id="myModalText" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">文件上传</h4>
            </div>
            <div class="modal-body">
                <!--文章发布区域-->
                <form method="post" action="/upload" enctype="multipart/form-data">
                    <div class="form-group">
                        <label for="exampleInputPassword1">点击选择文件</label>
                        <!--只接受.txt文件，不能上传图片-->
                        <input type="file" name="uploadFile" multiple accept="text/plain">
                    </div>
                    <!--两个按钮-->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default quxiao" data-dismiss="modal">取消</button>
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
